# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-net-telnet
pkgver=3.05
pkgrel=3
pkgdesc="Perl/CPAN Module Net::Telnet : Interact with TELNET port or other TCP ports"
arch=("any")
url="https://search.cpan.org/dist/Net-Telnet"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/J/JR/JROGERS/Net-Telnet-$pkgver.tar.gz")
sha256sums=('677f68ba2cd2a824fae323fa82e183bf7e3d03c3c499c91d923bd6283796a743')

build() {
  cd "$srcdir"/Net-Telnet-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Net-Telnet-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
